$.get(chrome.extension.getURL('/injected.js'), 
    function(data) {
        var script = document.createElement("script");
        script.setAttribute("type", "text/javascript");
        script.innerHTML = data;
        document.getElementsByTagName("head")[0].appendChild(script);
        document.getElementsByTagName("body")[0].setAttribute("onLoad", "injected_main();");
        $("a").click(clicker);
    }
);

function clicker(_event) {
	var str = $(this).attr("href");
	console.log("to:"+decodeURI(str));
}